<!--
 * @Author: daidai
 * @Date: 2022-02-28 16:16:42
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-07-20 17:57:11
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-center.vue
-->
<template>

  <div style="height: 320px;box-sizing: border-box;position: relative">
    <div style="position: absolute;top:10px; left: 130px;font-family: 'font1';font-size: 23px;">
      {{title}}
    </div>
    <div style="margin-bottom: 30px"></div>
    <KpiDashboard :data="data"></KpiDashboard>
  </div>
</template>

<script lang="ts" setup>
import KpiDashboard from "@/components/barCom/barIndex.vue";
const props = defineProps(['data','title'])


</script>
<style lang='scss' scoped>
.user_Overview {
  li {
    flex: 1;

    p {
      text-align: center;
      height: 16px;
      font-size: 16px;
    }

    .user_Overview_nums {
      width: 100px;
      height: 100px;
      text-align: center;
      line-height: 100px;
      font-size: 22px;
      margin: 50px auto 30px;
      background-size: cover;
      background-position: center center;
      position: relative;

      &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
      }

      &.bgdonghua::before {
        animation: rotating 14s linear infinite;
      }
    }

    .allnum {

      // background-image: url("../../assets/img/left_top_lan.png");
      &::before {
        background-image: url("../../assets/img/left_top_lan.png");

      }
    }

    .online {
      &::before {
        background-image: url("../../assets/img/left_top_lv.png");

      }
    }

    .offline {
      &::before {
        background-image: url("../../assets/img/left_top_huang.png");

      }
    }

    .laramnum {
      &::before {
        background-image: url("../../assets/img/left_top_hong.png");

      }
    }
  }
}
</style>